package com.itboye.shop.logincontroller;

import android.app.Activity;
import android.content.Intent;

import com.itboye.shop.me.LoginActivity;

/**
 * @author 未登录情况下执行该方法
 */
public class UnLoginState implements ILoginState {

    // 所有未登录的统一执行Login操作
    private void doUnLogin(Activity act) {
        Intent intent = new Intent(act, LoginActivity.class);
        act.startActivity(intent);
    }

    /***
     * 个人信息
     */
    @Override
    public void PersonnalInfomaton(Activity activity, Object obj) {
        // TODO Auto-generated method stub
        doUnLogin(activity);
    }

    /**
     * 我的钱包
     */
    @Override
    public void onQianBao(Activity activity, Object obj) {
        doUnLogin(activity);
    }

    /**
     * 购物车
     */
    @Override
    public void onGouWuChe(Activity activity, Object obj) {
        doUnLogin(activity);
    }
    /**
     * 收货地址
     */
    @Override
    public void onShouHuoDiZhi(Activity activity, Object obj) {
        doUnLogin(activity);
    }

    @Override
    public void onDingDan(Activity activity, Object obj) {
        doUnLogin(activity);
    }
}
